package com.workingpub.commons.domain;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 树型领域对象基类
 * 
 * @author Kevin(Ping)Tao
 *
 */
@MappedSuperclass
public abstract class AutoIncrementDomainTreeNode extends AutoIncrementDomainGeneral implements DomainTreeNode<Long> {

	private static final long serialVersionUID = -1656771082498405775L;

	@Column(name = "parent_id")
	protected String parentId;

	@Override
	public String getParentId() {
		return parentId;
	}

	@Override
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Override
	public String toString() {
		return super.toString() + "\tparentId : " + parentId;
	}
}
